<?php
/**
 * ooPHP - object oriented PHP framework
 * @author Kamil Mikolajczyk ( rego (at) gazeta (dot) pl )
 * @version 1.0
 *
 */

/**
 * 
 * @author Kamil Mikolajczyk ( rego (at) gazeta (dot) pl )
 * @version 1.0
 *
 */
 include('printer.class.php');
 include('head.class.php');
 include('html.class.php');
 include('form.class.php');
 include('element.class.php');
// Printer::write('abc', 3);
// Printer::writeln('def', 3);
// Printer::write('ghi');
// Printer::writeln('jkl');
// Printer::write('mno');
// 
 $h = new Head();
 $h -> setAuthor('RegO');
 $h -> setCharset('utf-8');
 $h -> setCssLink('style.css');
 $h -> setDescription('opis');
 $h -> setKeywords('keywordy slowa kluczowe');
 $h -> setLang('pl');
 $h -> setTitle('Tytul');
 
 $b = new Element('body');
 $f = new Form('http://www.onet.pl/', 'POST');
 $f -> createLoggingForm('login', 'pass', 'Użytkownik: ', 'Hasło: ', 'Zaloguj', 'http://www.onet.pl/');
 $b -> addElement($f);
 $html = new Html();
 $html -> setHead($h);
 $html -> setBody($b);
 
 $html -> render();
 ?>